﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/jui.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    操作日志_列表
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MainContent" runat="server">
    <div id="layout" class="noNavTab">
        <div id="navTab" class="">
            <div class="pageHeader">
                <h2 class="contentTitle">
                    操作日志</h2>
                <div class="searchBar">
                    <form id="searchForm" onsubmit="loadList(0);return false;">
                    <table class="searchContent">
                    <thead>
                        <tr>
                            <td>
                                名称：<input class="textInput" type="text"  id="_UserName" />
                            </td>
                             <td>
                                大类：<input class="textInput" type="text" name="bigClass" id="BigClass" />
                            </td>
                             <td>
                                小类：<input class="textInput" type="text" name="SmallClass" id="SmallClass" />
                            </td>
                            <td>
                                登录时间：
                                <input class="date textInput readonly" type="text" readonly="true" format="yyyy/MM/dd""
                                    id="_ontime1">
                                
                           至
                                <input class="date textInput readonly" type="text" readonly="true" format="yyyy/MM/dd"
                                    id="_ontime2">
                               
                            </td>
                            <td>
                                状态：
                            </td>
                            <td>
                                <%Html.RenderPartial("~/Views/BaseLibrary/ForStates.ascx"); %>
                            </td>
                        </tr>
                        </thead>
                    </table>
                    <div class="subBar">
                        <ul>
                            <li>
                                <div class="buttonActive">
                                    <div class="buttonContent">
                                        <button type="submit">
                                            查询</button></div>
                                </div>
                            </li>
                        </ul>
                    </div>
                    </form>
                </div>
            </div>
            <%
                string tname = "Sys_IBsysOperateLog";
                string ename = DencryptHelper.Encrypt(tname);
            %>
            <div class="pageContent">
                <!--加载列表-->
                <div id="listDt">
                </div>
                <script language="javascript" type="text/javascript">
                    $(function () {
                        loadList(0);
                    });
                    function loadList(i) {
                        var htmlname = "listDt"; //
                        //var pars = $('#_UserName').val();
                        //var name = "0_UserName__3";
                        var pars = $('#_UserName').val() + "," + $('#BigClass').val() + "," + $('#SmallClass').val();
                        //alert(pars);
                        pars = encodeURI(pars);
                        var name = "0_UserName__3,0_BigClass__3,0_SmallClass__3";

                        var v1= $('#_ontime1').val();
                        var v2= $('#_ontime2').val();
                        if (v1 != '') {
                            pars = pars + "," + v1;
                            name = name+",0_ontime__1"
                        }
                        if (v2 != '') {
                            pars = pars + "," + v2;
                            name = name + ",0_ontime__2"
                        }
                        var tName = '<%=ename %>';
                        var control = "Sys/OperateLog/List";
                        var datebase = "1";
                        var states = $('#states').val();
                        //
                        list(htmlname, pars, name, tName, control, datebase, states);
                    }
                </script>
                <script type="text/javascript" src="/Scripts/pager.js"></script>
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="/content/jui-normal.css" rel="stylesheet" type="text/css" />
</asp:Content>
